package com.cweb.admin.model.sys.sys_log_info.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.cweb.framework.base.entity.BaseMybatisModel;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 系统-日志信息
 * @author changfan
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class SysLogInfo extends BaseMybatisModel {

    private static final long serialVersionUID=1L;

    /**
     * 物理id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 操作用户id
     */
    @TableField(value = "`user_id`")
    private Long userId;

    /**
     * 说明消息
     */
    @TableField(value = "`message`")
    private String message;

    /**
     * 任务方法
     */
    @TableField(value = "`method_name`")
    private String methodName;

    /**
     * 方法参数
     */
    @TableField(value = "`method_params`")
    private String methodParams;

    /**
     * 日志信息
     */
    @TableField(value = "`log_message`")
    private String logMessage;

    /**
     * 异常信息
     */
    @TableField(value = "`exception_info`")
    private String exceptionInfo;

    /**
     * 是否成功
     */
    @TableField(value = "`success`")
    private Boolean success;

    /**
     * 状态（0：正常）
     */
    @TableField(value = "`status`", select = false)
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "`create_time`", select = false)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "`update_time`", select = false)
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "`remark`", select = false)
    private String remark;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
